import request from "@/utils/request"

// 新增告警事件类型规则
export const addAlarmEventTypeRule = (params = {}) => { return request.post('/business/alarmEventTypeRule', params) }
// 修改告警事件类型规则
export const updateAlarmEventTypeRule = (params = {}) => { return request.put('/business/alarmEventTypeRule', params) }
// 删除告警事件类型规则
export const deleteAlarmEventTypeRule = (params) => { return request.delete('/business/alarmEventTypeRule', { data: params }) }
// 查询事件类型列表
export const listAlarmEventTypeRule = (params) => { return request.get('/business/alarmEventTypeRule/list', { params }) }
// 查询事件类型列表
export const getAlarmEventTypeRuleListByid = (params = {}) => { return request.get(`/business/alarmEventTypeRule/list`, { params }) }


